package com.chenglu.android.mine.me.mvp.model;



import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.mine.bean.ReturnStringBean;
import com.chenglu.android.mine.bean.UserBalanceBean;
import com.chenglu.android.mine.bean.UserInfoBean;
import com.chenglu.android.mine.me.mvp.contract.MineContract;


import io.reactivex.rxjava3.core.Observable;

/**
 * @author: lyj
 * @Created by Copyright 2023/3/2 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class MineModel implements MineContract.MineModel {


    @Override
    public Observable<UserInfoBean> getUserInfo(String token) {
        return RetrofitClientCL.getInstance().getApi().getUserInfo(token);
    }

    @Override
    public Observable<UserBalanceBean> getUserBalance(String token) {
        return RetrofitClientCL.getInstance().getApi().getUserBalance(token);
    }

    @Override
    public Observable<SmsCodeBean> getExitLogin(String token) {
        return RetrofitClientCL.getInstance().getApi().getExitLogin(token);
    }

    @Override
    public Observable<ReturnStringBean> getPlatformPics() {
        return RetrofitClientCL.getInstance().getApi().getPlatformPics();
    }

}
